<?php
namespace app\index\controller;

class Index
{
    public function index()
    {
        //echo date("Y-m-d",1491994927);
        $conn=new \MongoClient("mongodb://localhost:27017");
        $omodel = $conn->oho->oho;
        $list=$omodel->findOne();
        foreach ($list as $obj) {
            dump($obj) . "\n";
        }

        //$connection = new Mongo(mongodb://192.168.1.5:27017);
        //$conn=new \Mongo('mongodb://ggmt-mini:ywnBgPXiGkvYh6sN@mongodb.maodou.io:27017/ggmt-live');

        //return view('index');
    }
}
